package com.work.Bean;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Component;

@Component
//@Primary   //默认首选
@Qualifier("beanA")
public class BeanA implements Bean {

	public void deal() {
         System.out.println("这里是A方法");		
	}

}
